home *** CD-ROM | disk | FTP | other *** search
/ cyber.net interactivo 1997 March / inter@ivo 1997-03.iso / wing / wing.h_ / wing.h
Text File  |  1994-06-26  |  2KB  |  79 lines

  1. /*****************************************************************************\
  2. *
  3. * wing.h - WinG functions, types, and definitions
  4. *
  5. *          Copyright (c) 1994 Microsoft Corp. All rights reserved.
  6. *
  7. \*****************************************************************************/
  8.  
  9. #ifndef _INC_WING
  10. #define _INC_WING
  11.  
  12. #ifndef _INC_WINDOWS
  13. #include <windows.h>    /* Include windows.h if not already included */
  14. #endif
  15.  
  16. #ifdef __cplusplus
  17. extern "C" {            /* Assume C declarations for C++ */
  18. #endif
  19.  
  20. #if defined(WIN32) || defined(_WIN32)
  21. #define WINGAPI WINAPI
  22. #else
  23. #define WINGAPI WINAPI _loadds
  24. #endif
  25.  
  26.  
  27. /***** WingDC and WinGBitmap *************************************************/
  28.  
  29. HDC WINGAPI WinGCreateDC( void );
  30.  
  31. BOOL WINGAPI WinGRecommendDIBFormat( BITMAPINFO FAR *pFormat );
  32.  
  33. HBITMAP WINGAPI WinGCreateBitmap( HDC WinGDC, BITMAPINFO const FAR *pHeader,
  34.         void FAR *FAR *ppBits );
  35.  
  36. void FAR *WINGAPI WinGGetDIBPointer( HBITMAP WinGBitmap,
  37.         BITMAPINFO FAR *pHeader );
  38.  
  39. UINT WINGAPI WinGGetDIBColorTable( HDC WinGDC, UINT StartIndex,
  40.         UINT NumberOfEntries, RGBQUAD FAR *pColors );
  41.  
  42. UINT WINGAPI WinGSetDIBColorTable( HDC WinGDC, UINT StartIndex,
  43.         UINT NumberOfEntries, RGBQUAD const FAR *pColors );
  44.  
  45.  
  46. /***** Halftoning ************************************************************/
  47.  
  48. HPALETTE WINGAPI WinGCreateHalftonePalette( void );
  49.  
  50. typedef enum WING_DITHER_TYPE
  51. {
  52.     WING_DISPERSED_4x4,
  53.     WING_DISPERSED_8x8,
  54.  
  55.     WING_CLUSTERED_4x4
  56.  
  57. } WING_DITHER_TYPE;
  58.  
  59. HBRUSH WINGAPI WinGCreateHalftoneBrush( HDC Context, COLORREF crColor,
  60.         WING_DITHER_TYPE DitherType );
  61.  
  62.  
  63. /***** Blts ******************************************************************/
  64.  
  65. BOOL WINGAPI WinGBitBlt( HDC hdcDest, int nXOriginDest,
  66.         int nYOriginDest, int nWidthDest, int nHeightDest, HDC hdcSrc,
  67.         int nXOriginSrc, int nYOriginSrc );
  68.  
  69. BOOL WINGAPI WinGStretchBlt( HDC hdcDest, int nXOriginDest,
  70.         int nYOriginDest, int nWidthDest, int nHeightDest, HDC hdcSrc,
  71.         int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc );
  72.  
  73. #ifdef __cplusplus
  74. }                       /* End of extern "C" */
  75. #endif
  76.  
  77. #endif // _INC_WING
  78.  
  79.